using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;


namespace Core.Models
{
    public partial class Request
    {
        public Request()
        {
           //this.Comments = new List<Comment>();
           // this.Images = new List<Image>();
        }

        [Key]        
        public System.Guid ID { get; set; }

        
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int RequestCode { get; set; }
        
        [MaxLength(1)]
        public string RequestType { get; set; }

        
        public int MemberCode { get; set; }

        
        [MaxLength(500)]
        public string BookName { get; set; }

        
        public int CategoryCode { get; set; }

        
        public string Description { get; set; }

        public string SellingReason { get; set; }

        /// <summary>
        /// F = finished, N = not finished
        /// </summary>
        [MaxLength(1)]
        public string Status { get; set; }

        
        public Nullable<int> Quantity { get; set; }

        
        public Nullable<decimal> Price1 { get; set; }

        
        public Nullable<decimal> Price2 { get; set; }

        
        [MaxLength(500)]
        public string Contact { get; set; }

        
        [MaxLength(500)]
        public string ExchangePlace { get; set; }

        
        public Nullable<short> Finished { get; set; }

        
        [MaxLength(500)]
        public string BookUrl { get; set; }

        
        public Nullable<System.DateTime> CreatingDate { get; set; }

        
        public Nullable<System.DateTime> LastModified { get; set; }

        /// <summary>
        /// 1 = active , 0 = not active
        /// </summary>
        public short Active { get; set; }

        //
        //public virtual ICollection<Comment> Comments { get; set; }
        //
        //
        //public virtual ICollection<Image> Images { get; set; }


    }
}
